package com.unipay.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Project: yitong_parent
 * @Author: C.yu
 * @Time: 2023-04-10 20:05:33
 * @Desc: TODO  Feign接口类
 */

//数据字典API接口
//@FeignClient(value = "service_cmn")
@FeignClient(value = "service-cmn")
@Repository
public interface DictFeignClient {
    /*
     * 获取数据字典名称
     * @param parentDictCode
     * @param value
     * @return
     */
    @GetMapping(value = "/unipay/hospSet/cmn/getName/{dictcode}/{value}")
    public String getName(
            @PathVariable("dictcode") String dictcode,
            @PathVariable("value") String value
    );

    @GetMapping(value = "/unipay/hospSet/cmn/getName/{value}")
    public String getName(
            @PathVariable("value") String value
    );
}
